package com.onesports.intelligent.k12.polarlight.mapper.course;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.onesports.intelligent.k12.polarlight.domain.entity.course.CourseScheduleDetailCoachRel;
import java.util.List;

import com.onesports.intelligent.k12.polarlight.domain.vo.course.CoachScheduleUseSituationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 详细课程安排教练rel映射器
 *
 * @author clw
 * @date 2022-07-22 16:36:23
 */
@Mapper
public interface CourseScheduleDetailCoachRelMapper extends BaseMapper<CourseScheduleDetailCoachRel> {


    List<CoachScheduleUseSituationVO> selectCanUseCoach();

    /**
     * 更新教练状态
     *
     * @param coachId     教练Id
     * @param startPeriod 开始时段
     * @param endPeriod   结束时段
     * @param cycle       周期
     */
    void updateCoachRelStatus(@Param("coachId")String coachId, @Param("startPeriod")String startPeriod, @Param("endPeriod")String endPeriod, @Param("cycle")List<String> cycle,@Param("status") Boolean status);
}
